﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using CLEXA.DataContracts;

namespace CLEXA.ServiceContracts
{
    [ServiceContract]
    public interface IAdminService
    {
        [OperationContract]
        int CreateUser(string username, string password, bool isActive);

        [OperationContract]
        List<UserData> GetAllUsers();

        [OperationContract]
        void DeleteUser(int userId);

        [OperationContract]
        void UpdateUser(UserData user);

        [OperationContract]
        void ChangePassword(int userId, string password);
    }
}
